//index.js
//获取应用实例
const app = getApp()

Page({
  data: {
    userInfo: {},
  },
  //事件处理函数
  bindViewTap: function () {
    wx.navigateTo({
      url: '../../logs/logs'
    })
  },
  onLoad: function () {

      wx.getUserInfo({
        success: res => {
          this.setData({
            userInfo: res.userInfo,
          })
        }
      })
  },
})